package com.wjv.example.service;

import com.wjv.example.common.entity.ResultInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>Title: OrderService</p>
 * <p>Company:misspao </p>
 *
 * @author: wjv
 * @Date: Create in 16:35 2020/9/24
 * @Description:
 */
@Component
@FeignClient(value = "CLOUD-PAYMENT-HYSTRIX", fallback = OrderFeignFallbackServiceImpl.class)
public interface OrderFeignService {

    @GetMapping("/payment/get")
    ResultInfo get(@RequestParam("id") int id);

    @GetMapping("/payment/get2")
    ResultInfo get2(@RequestParam("id") int id);
}
